package com.ruoyi.system.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.Dc3DeviceChangeCapEvent;
import com.ruoyi.system.mapper.Dc3DeviceChangeCapEventMapper;
import com.ruoyi.system.service.IDc3DeviceChangeCapEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2025-01-06
 */
@Service
public class Dc3DeviceChangeCapEventServiceImpl extends ServiceImpl<Dc3DeviceChangeCapEventMapper,Dc3DeviceChangeCapEvent> implements IDc3DeviceChangeCapEventService
{
    @Autowired
    private Dc3DeviceChangeCapEventMapper dc3DeviceChangeCapEventMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public Dc3DeviceChangeCapEvent selectDc3DeviceChangeCapEventById(Long id)
    {
        return dc3DeviceChangeCapEventMapper.selectDc3DeviceChangeCapEventById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param dc3DeviceChangeCapEvent 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Dc3DeviceChangeCapEvent> selectDc3DeviceChangeCapEventList(Dc3DeviceChangeCapEvent dc3DeviceChangeCapEvent)
    {
        return dc3DeviceChangeCapEventMapper.selectDc3DeviceChangeCapEventList(dc3DeviceChangeCapEvent);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param dc3DeviceChangeCapEvent 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertDc3DeviceChangeCapEvent(Dc3DeviceChangeCapEvent dc3DeviceChangeCapEvent)
    {
        dc3DeviceChangeCapEvent.setCreateTime(DateUtils.getNowDate());
        return dc3DeviceChangeCapEventMapper.insertDc3DeviceChangeCapEvent(dc3DeviceChangeCapEvent);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param dc3DeviceChangeCapEvent 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateDc3DeviceChangeCapEvent(Dc3DeviceChangeCapEvent dc3DeviceChangeCapEvent)
    {
        dc3DeviceChangeCapEvent.setUpdateTime(DateUtils.getNowDate());
        return dc3DeviceChangeCapEventMapper.updateDc3DeviceChangeCapEvent(dc3DeviceChangeCapEvent);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDc3DeviceChangeCapEventByIds(Long[] ids)
    {
        return dc3DeviceChangeCapEventMapper.deleteDc3DeviceChangeCapEventByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDc3DeviceChangeCapEventById(Long id)
    {
        return dc3DeviceChangeCapEventMapper.deleteDc3DeviceChangeCapEventById(id);
    }
}